package com.zdsoft.finance.meet.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Lob;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.hibernate.annotations.Cascade;
import org.hibernate.annotations.CascadeType;

import com.zdsoft.framework.core.common.domain.BaseEntity;

/**
 * 参会委员
 * 
 * @author liuwei
 *
 */
@Entity
@Table(name = "ZDS_MEETING_MEMBER")
public class MeetingMember extends BaseEntity {

	/**
	 * 
	 */
	private static final long serialVersionUID = 9101007331594096177L;

	/**
	 * 委员代码
	 */
	@Column(length = 32)
	private String code;

	/**
	 * 委员所属部门名称
	 */
	@Column(length = 128)
	private String department;

	/**
	 * 委员所属部门Id
	 */
	@Column(length = 32)
	private String departmentId;

	/**
	 * 是否提交投票结果
	 */
	@Column
	private Boolean isSubmit;

	/**
	 * 委员名称
	 */
	@Column(length = 128)
	private String name;

	/**
	 * 投票意见
	 */
	@Lob
	private String opinion;

	/**
	 * 评分
	 */
	@Column
	private Integer score;

	/**
	 * 投票结果
	 */
	@Column(length = 32)
	private String vote;

	/**
	 * 投票时间
	 */
	@Column
	private Long votingDateTime;

	/**
	 * 参会项目
	 */
	@ManyToOne(fetch = FetchType.LAZY)
	@Cascade({ CascadeType.ALL })
	private MeetingProject meetingProject;

	/**
	 * 项目案号
	 */
	private transient String projectCode;

	/**
	 * 参会委员ids
	 */
	private transient String meetingMemberIds;

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public String getDepartment() {
		return department;
	}

	public void setDepartment(String department) {
		this.department = department;
	}

	public String getDepartmentId() {
		return departmentId;
	}

	public void setDepartmentId(String departmentId) {
		this.departmentId = departmentId;
	}

	public Boolean getIsSubmit() {
		return isSubmit;
	}

	public void setIsSubmit(Boolean isSubmit) {
		this.isSubmit = isSubmit;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getOpinion() {
		return opinion;
	}

	public void setOpinion(String opinion) {
		this.opinion = opinion;
	}

	public Integer getScore() {
		return score;
	}

	public void setScore(Integer score) {
		this.score = score;
	}

	public String getVote() {
		return vote;
	}

	public void setVote(String vote) {
		this.vote = vote;
	}

	public Long getVotingDateTime() {
		return votingDateTime;
	}

	public void setVotingDateTime(Long votingDateTime) {
		this.votingDateTime = votingDateTime;
	}

	public String getProjectCode() {
		return projectCode;
	}

	public void setProjectCode(String projectCode) {
		this.projectCode = projectCode;
	}

	public MeetingProject getMeetingProject() {
		return meetingProject;
	}

	public void setMeetingProject(MeetingProject meetingProject) {
		this.meetingProject = meetingProject;
	}

	public String getMeetingMemberIds() {
		return meetingMemberIds;
	}

	public void setMeetingMemberIds(String meetingMemberIds) {
		this.meetingMemberIds = meetingMemberIds;
	}

}
